﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;

namespace TyMES.Model.Record
{
    [Table("T_BatchInfor")]
    public class BatchInfor : BasePoco
    {
        [Display(Name = "产线号")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string LineCode { get; set; }
        [Display(Name = "工序号")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string OperationCode { get; set; }
        [Display(Name = "工序名称")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string OperationName { get; set; }
        [Display(Name = "SN")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string CurrentSN { get; set; }
        [Display(Name = "批次号")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string BatchCode { get; set; }
        [Display(Name = "单次用量")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string SingleConsumption { get; set; }
        [Display(Name = "所属工单")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string orderCode { get; set; }
        [Display(Name = "所属排程")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string schduleCode { get; set; }
        [Display(Name = "上传工厂mes")]
        public bool uploadFlag { get; set; }
    }
}
